package com.zlc.sykks.mapper;



import com.zlc.sykks.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {

    /*
    * 添加User
    * */
    @Insert("insert into user(name, password, age, sex, address, phone)" +
            " VALUES(#{name},#{password},#{age},#{sex},#{address},#{phone}) ")
    void addUser(User user);

    /*
    * 查询单个User
    * */
    public User querySingleUser(User user);

}
